<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="js/vue.js"></script>
    <title>Document</title>
</head>

<body>
    <div class="box">
        <p v-for = "(user, i) in list">索引:{{i}}----{{ user.name }}----{{user.age}}</p>
        <p v-for = "(val, key) in listObj">{{val}}---{{key}}</p>
        <p v-for = "count in 10">这是第{{ count }}次循环</p> <!-- 从1开始 -->
    </div>
</body>
<script>
    var ve = new Vue({
        el: ".box",
        data: {
            listObj: {
                name: "haiyang",
                age: 18,
                sex: "男",
                id: 1
            },



            list: [{
                    name: "haiyang1",
                    age: 18
                },
                {
                    name: "haiyang2",
                    age: 18
                },
                {
                    name: "haiyang3",
                    age: 18
                },
                {
                    name: "haiyang4",
                    age: 18
                },
                {
                    name: "haiyang5",
                    age: 18
                },
            ]
        }
    })
</script>

</html>